package com.lap.auth.domain.menu;

import com.lap.framework.enums.BaseEnum;
import lombok.Getter;

@Getter
public enum MenuType implements BaseEnum<Integer> {
  CATALOG(0, "目录", true),
  MENU_ITEM(1, "菜单项", true),
  FUNCTION(2, "功能", false),
  ;

  private final Integer code;
  private final String labelZh;
  private final boolean container;

  MenuType(Integer code, String labelZh, boolean container) {
    this.code = code;
    this.labelZh = labelZh;
    this.container = container;
  }

  /** 是一个容器类型 */
  boolean isContainer() {
    return container;
  }
}
